﻿@using QDT.Common
@using QDT.Core
@using QDT.Core.Deals
@using QDT.MVC.UI
@using QDT.Web
@model QDT.Common.IPagedList<QDT.Core.Projects.Project>
@{
    ViewBag.Title = "可投的标";
}
<div class="ui-body">
        <div class="ui-inner">
            <div class="ui-grid-row">

                @Html.Partial("_UserMenu", MenuRoute.AutoBid )

                <div class="ui-grid-20">
                    <div class="ui-box">
                        
                        <div class="ui-table-container">
                            <table class="ui-table ui-table-inbox thead-ext ui-table-big"><!-- 可以在class中加入ui-table-inbox或ui-table-noborder分别适应不同的情况 -->
                                <thead>
                                    <tr>
                                        <th>项目名称</th>
                                        <th>开始时间</th>
                                        <th>筹款资金</th>
                                        <th>总筹资金</th>
                                        <th>借款期数</th>
                                        <th>状态</th>
                                        <th>操作</th>
                                    </tr>
                                </thead><!-- 表头可选 -->
                                <tbody>
                                    @foreach (var m in Model)
                                    {
                                        <tr>
                                            <td>
                                                <p><a href="@Url.Action("Project", "Offline", new { id=m.ID })">@m.Name</a></p>
                                            </td>
                                            <td>@m.StartTime</td>
                                            <td>@m.BorrowAmount.ToMoney()</td>
                                            <td>@m.Parent.TotalBorrow</td>
                                            <td>@(m.RepayTime)<span>个月</span></td>
                                            <td>
                                                @m.Status.ToLocalizable()
                                            </td>
                                            <td>
                                                <a href="@Url.Action("Project", "Offline", new { id = m.ID })" class="ui-button ui-button-orange">投资</a>
                                            </td>
                                        </tr>
                                    }
                                </tbody>
                            </table>
                        </div>

                        @Html.ClientPager(Model)

                    </div>
                </div>
            </div>
        </div>
    </div>